<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>分类修改页面</title>
    <link rel="stylesheet" type="text/css" media="screen" th:href="@{/css/admin.css}"   href="../static/css/admin.css" >
    <script type="text/css">
        .frm{
            width: 600px;
            margin-top: 30px;

        }
    </script>
    <script type="text/javascript">
        //文件框选择图片时图片自动切换
        function showImg() {
            //文件访问对象
            var f =new FileReader();
            f.onload=function (ev) {
                img.src=ev.target.result;
            }
            f.readAsDataURL(file.files[0]);

        }
    </script>
</head>
<body>
<form id="form" action="/category/show_category_update" method="post" >
    <table id="table">
        <tr>
            <td >分类名称</td>
            <td >
                <input type="hidden" name="id" th:value="${category.id}" required="required">
                <input type="text" name="categoryname"
                       th:value="${category.categoryname}"
                       required="required">
            </td>
        </tr>
        <tr>
        <td ><input type="submit" value="修改"></td>
        <td ><input type="reset" value="重置"></td>
        </tr>
    </table>
</form>
</body>
</html>